# -*- coding: utf-8 -*-
from flask import Flask,url_for
app = Flask(__name__)
@app.route('/')
def index():
    url1 = url_for('news', id='10086')
    return '反转内容为' + url1
@app.route('/news/id')
def news(id):
    return '请求参数为' + id
if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=8888)